package com.soup.common.constant;

/**
 * 通用常量类
 *
 * @author zhaoyi
 */
public interface CommonConstant {

    /**
     * 跨域允许时间，毫秒
     */
    long DEFAULT_CORS_MAX_AGE = 3600;

    /**
     * 登陆用户token 缓存类别名
     */
    String TOKEN_CACHE = "TOKEN_CACHE";
    /**
     * 图片验证码缓存
     */
    String KAPTCHA_CACHE = "KAPTCHA_CACHE";

    /**
     * 权限菜单缓存类别名
     */
    String ROLE_MENUS = "ROLE_MENUS";

    /**
     * 删除状态: 1已删除，0未删除
     */
    int DELETED = 1;
    int NOT_DELETED = 0;

    /**
     * 用户状态: 1可用，0禁用
     */
    int ENABLED = 1;
    int FORBIDDEN = 0;

    /**
     * 菜单类型：1方法，2控制器, 3分组
     */
    int METHOD_MENU = 1;
    int CONTROLLER_MENU = 2;
    int GROUP_MENU = 3;

    /**
     * 系统表
     */
    String SYS_USER = "sys_user";
    String SYS_MENU = "sys_menu";
    String SYS_DICTIONARY = "sys_dictionary";
    String SYS_ROLE = "sys_role";
    String SYS_ROLE_MENU = "sys_role_menu";
    String SYS_UPFILE = "sys_upfile";

    /**
     * int 常量
     */
    int NUM_0 = 0;
    int NUM_1 = 1;
    int NUM_2 = 2;
    int NUM_3 = 3;
    int NUM_4 = 4;
    int NUM_5 = 5;
    int NUM_6 = 6;
    int NUM_7 = 7;
    int NUM_8 = 8;
    int NUM_9 = 9;
    int NUM_10 = 10;
    int NUM_11 = 11;
    int NUM_12 = 12;
    int NUM_13 = 13;
    int NUM_14 = 14;
    int NUM_15 = 15;
    int NUM_16 = 16;
    int NUM_17 = 17;
    int NUM_18 = 18;
    int NUM_19 = 19;
    int NUM_20 = 20;
    int NUM_21 = 21;
    int NUM_22 = 22;
    int NUM_23 = 23;
    int NUM_24 = 24;
    int NUM_25 = 25;
    int NUM_26 = 26;
    int NUM_27 = 27;
    int NUM_28 = 28;
    int NUM_29 = 29;
    int NUM_30 = 30;
    int NUM_31 = 31;
    int NUM_32 = 32;
    int NUM_33 = 33;
    int NUM_34 = 34;
    int NUM_35 = 35;
    int NUM_36 = 36;
    int NUM_37 = 37;
    int NUM_100 = 100;
    int NUM_400 = 400;
    int NUM_1024 = 1024;
    int NUM_3000 = 3000;
    int NUM_60000 = 60000;
    int NUM_300000 = 300000;

    boolean TRUE = true;
    boolean FALSE = false;

    /**
     * 通用变量方法名
     */
    String GETCODE = "getCode";
    String GETMESSAGE = "getMessage";


    /**
     * 字符串常量
     */
    String BLANK = "";
    String DOT = ".";
}
